<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>个案信息查询管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
 
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		
		 function reset(){
				$("#searchForm").reset();
				var selectVal = $("form:select");
				for(var i=0;i<selectVal.lengeth;i++){
					selectVal[i].options[0].selected= true;
				}
		} 
	</script>
	<style type="text/css">
		.minWidth {
			min-width: 177px;
		}	
	</style>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/child/childRepeatBaseinfo/">重复个案信息查询列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="childBaseinfo" action="${ctx}/child/childRepeatBaseinfo/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	<div class="breadcrumb">
		<table class="table table-bordered">	
			<tr>
				<th>查询类型：</th>
				<td>
					<form:select path="type" class="span2 minWidth">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('child_search_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
					</form:select>
				</td>
				<th>儿童姓名<span><input type="checkbox"></span></th>
				<td><form:input path="childname" htmlEscape="false" maxlength="26" class="input-medium"/></td>
				<th>出生日期<span><input type="checkbox"></span></th>
				<td><input name="birthday" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
						value="<fmt:formatDate value="${childBaseinfo.birthday}" pattern="yyyy-MM-dd"/>"
						onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/></td>
			</tr>
			<tr>
				<th>户籍所在地<span><input type="checkbox"></span></th>
				<td><form:input path="childcode" htmlEscape="false" maxlength="50" class="input-medium"/></td>
				<th>性别<span><input type="checkbox"></span></th>
				<td><form:select path="gender" items="${fns:getDictList('sex')}" itemLabel="label" itemValue="value" class="span2 minWidth"/></td>
				<th>母亲姓名<span><input type="checkbox"></span></th>
				<td><form:input path="guardianname" htmlEscape="false" maxlength="50" class="input-medium"/></td>
			</tr>
			<tr>
				<th>父亲姓名<span><input type="checkbox"></span></th>
				<td> <form:input path="father" htmlEscape="false" maxlength="50" class="input-medium"/> </td>
				<th>不允许为空：</th>
				<td colspan="3"><span><input type="checkbox"></span></td>
			</tr>
		</table>
	</div>
		<ul class="ul-form breadcrumb">
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="btns"><input onclick="reset()"  class="btn btn-primary" type="button" value="重置"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>操作</th>
				<th>总数</th>
			</tr>
		</thead>
		<tbody>
<%-- 		<c:forEach items="${page.list}" var="childBaseinfo"> --%>
			<tr>
				 <td>
    				<a href="#">修改</a>
<%--     				<a href="${ctx}/child/childRepaetBaseinfo/form?id=${childBaseinfo.id}">修改</a> --%>
<%-- 					<a href="${ctx}/child/childRepaetBaseinfo/delete?id=${childBaseinfo.id}" onclick="return confirmx('确认要删除该个案信息查询吗？', this.href)">删除</a> --%>
				</td> 
				<td>
					${result}
<%-- 				<a href="${ctx}/child/childRepaetBaseinfo/form?id=${childBaseinfo.id}"></a> --%>
				</td>
			</tr>
<%-- 		</c:forEach> --%>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>